package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.Comment;
import cn.tedu._04mybatis.pojo.CommentVO1;
import cn.tedu._04mybatis.pojo.CommentVO2;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CommentMapper {

    int insertComment(Comment comment);
    int updateComment(Comment comment);
    int deleteCommentById(Integer id);
    CommentVO1 selectCommentById1(Integer id);
    List<CommentVO2> selectCommentById2(Integer id);
    int dynamicUpdate(Comment comment);

    int dynamicDelete(Integer[] ids);

    int dynamicDelete2(List<Integer> ids);





}
